﻿/***********************************************************************
 * <copyright file="GroupMenuDescriptionController.cs" company="VidaGIS">
 * -->    Copyright (C) statement. All right reserved
 * </copyright>
 * 
 * Created:   Hoang Bich Son 
 * Email:    sonhb@vidagis.com or bichson2002@gmail.com
 * Website:
 * Create Date: Wednesday, November 26, 2014
 * Usage: 
 * 
 * RevisionHistory: 
 * Date         Author               Description 
 * 
 * ************************************************************************/

using System.Collections.Generic;
using System.Web.Http;
using BusinessCMS;
using DataCMS;
using DataCMS.Interfaces;

namespace API.Controllers.V1
{    
    public class GroupMenuDescriptionController : ApiController
    {
        private static readonly IGroupMenuDescription GroupMenuDescriptionDao = DataAccess.GroupMenuDescription;

        [HttpGet]        
        public IEnumerable<GroupMenuDescription> GetListByLanguageId(int languageId)
        {
            return GroupMenuDescriptionDao.GetListByLanguageId((short)languageId);
        }
    }
}
